<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="UTF-8">
		<title>添加家长</title>
		<link rel="stylesheet" href="../layui/css/layui.css"/>
		<link rel="stylesheet" href="../css/parentManagement.css"/>
		<link rel="stylesheet" href="../css/public.css" media="all">
	</head>
	<body>
		<!--弹框调用内容Start-->
		<div id="parentlayercon" class="relationLayer-con" style="margin-bottom: 30px;">
			<blockquote class="layui-elem-quote not_border_left">
				<div class="layui-form-item">
					<div class="layui-block layui-col-xs10">
						<label class="layui-form-label">选择孩子：</label>
						<div class="layui-input-block">
							<input type="text" name="changestulistid" id="changestulistid" disabled  class="layui-input" style="display:none">
						    <input type="text" name="changestulistname" id="changestulistname" disabled  class="layui-input" >
						</div>
					</div>
					<button id="clearstudent" type="button" class="layui-btn layui-bg-blue layui-col-xs1">清空</button>
				</div>
			</blockquote>
	        <blockquote class="layui-elem-quote not_border_left">
				<form class="layui-form" action="">
					<div class="layui-inline"> 	
						<div class="layui-input-inline">
						    <select name="selschooltype" id="selschooltype" lay-filter="selschooltype" lay-event="selschooltype">
						        <option value="00">请选择学校类型</option>
						    </select>	
						</div>
						<div class="layui-input-inline">
						    <select name="selschool" id="selschool" lay-filter="selschool" lay-event="selschool" lay-verify="required">
						        <option value="00">请选择所属学校</option>
						    </select>
						</div>			  
					  	<div class="layui-input-inline">
						    <select name="selgradename" id="selgradename" lay-filter="selgradename" lay-verify="required">
						    	<option value='00'>请选择年级</option>
							</select>
						</div>
						<div class="layui-input-inline">
						    <select name="classid" id="classid" lay-filter="classid" lay-verify="required">
						    	<option value='00'>请选择班级</option>
							</select>
						</div>
						<div class="layui-input-inline">
							<input type="text" autocomplete="off" name="idorrelname" id="idorrelname" lay-event="idorrelname" placeholder="请输入学生学号或姓名" class="layui-input">
					    </div>
					    <div class="layui-input-inline">
							<button type="button" class="layui-btn layui-bg-blue" id="selStuBtn">查询</button>
					    </div>
					</div>
				</form>
			</blockquote>
			<table style="margin-top:80px" class="layui-hide" id="parentStus" lay-filter="parentStus"></table>
			
			<script type="text/html" id="stuBar">
				<a href="javascript:" class="layui-btn layui-btn-sm layui-bg-blue" id="selstudent" lay-event="selstudent">选择</a>
			</script>
			<div class="layui-form-item">
			    <div class="layui-input-block">
			        <button id="btnaddstulist" type="button" class="layui-btn layui-bg-blue" style="float: right; margin-top: 10px">保存</button>
			    </div>
			</div>
		</div>
		<!--弹框调用内容END-->
	
		<div class="addpar-con">
			<div class="from-con" id="">
				<div style="width: 90%;">
				<form class="layui-form" action="" id="addparform">
					<div class="layui-row">
						<div class="layui-col-xs10">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">学校类型</label>
							    <div class="layui-input-block">
							      	<select name="seladdschooltype" id="seladdschooltype" lay-filter="seladdschooltype">
								        <option value="00">请选择学校类型</option>
								    </select>	
							    </div>
						  	</div>
					  	</div>
				    </div>
				    <div class="layui-row">
						<div class="layui-col-xs10">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">所属学校</label>
							    <div class="layui-input-block">
							     	<select name="seladdschool" id="seladdschool" lay-filter="seladdschool" lay-verify="required">
								        <option value="00">请选择所属学校</option>
								    </select>
							    </div>
						  	</div>
					  	</div>
				    </div>
					<div class="layui-row">
						<div class="layui-col-xs10">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">真实姓名</label>
							    <div class="layui-input-block">
							      <input id="realname" type="text" style="float: left;position: relative;" name="realname" lay-verify="required" placeholder="请输入真实姓名" class="layui-input" autocomplete="off">
							      <i class="required">*</i>
							    </div>
						  	</div>
					  	</div>
				    </div>
				    <div class="layui-row">
				    	<div class="layui-col-xs10">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">性别</label>
							    <div class="layui-input-block">
							      <input type="radio" name="sex" value="男" title="男" checked>
							      <input type="radio" name="sex" value="女" title="女">
							    </div>
							</div>
						</div>
					</div>
					<div class="layui-row">
				    	<div class="layui-col-xs10">
							<div class="layui-form-item">
							    <label class="layui-form-label">联系电话</label>
							    <div class="layui-input-block">
							    	<input id="phone" name="phone" type="tel" style="float: left;position: relative;" class="layui-input" placeholder="请输入联系电话" lay-verify="required|phone" autocomplete="off">
							    	<i class="required">*</i>
							    </div>
							</div>
						</div>
					</div>
					<div class="layui-row">
				    	<div class="layui-col-xs10">
							<div class="layui-form-item">
								<div class="layui-block layui-col-xs10">
									<label class="layui-form-label">选择学生</label>
									<div class="layui-input-block">
										<input id="parentstudentid" type="text" name="parentstudentid" placeholder="选择学生" class="layui-input" style="display:none"/>
										<input id="parentstudent" type="text" name="parentstudentid" placeholder="选择学生" class="layui-input" disabled/>
									</div>
								</div>
								<button type="button" id="btnadstu" class="layui-btn layui-col-xs2">选择学生</button>
							</div>
						</div>
					</div>
					<div class="layui-row">
				    	<div class="layui-col-xs10">
							<div class="layui-form-item">
							    <label class="layui-form-label">关系：</label>
							    <div class="layui-input-block">
								    <select name="relationship" id="relationship" lay-verify="required" lay-filter="stuclassid">
								    	<option value='00'>请选择关系</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
				    	<div class="layui-col-xs10">
							<div class="layui-form-item">
							    <div class="layui-input-block">
							      <button type="button" id="addParent" lay-submit="" lay-filter="addParent" class="layui-btn" style="float: right;"> 保  存 </button>
							    </div>
						  	</div>
						</div>
					</div>
				</form>
				</div>
			</div>
			<!--添加家长表单End-->
		</div>
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../layui/layui.all.js"></script>
		<script src="../js/public_changeschool.js"></script>
		<script src="../js/parentManagement/addParent.js"></script>
	</body>
</html>